package top.igotcha.article;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;
import top.igotcha.util.IdWorker;

/**
 * @author Gotcha
 * @date 2021/1/28
 * @describe
 */
@SpringBootApplication
//Mapper扫描注解
@MapperScan("top.igotcha.article.dao")
@EnableEurekaClient
public class ArticleApplication {
    public static void main(String[] args) {
        SpringApplication.run(ArticleApplication.class, args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker(1,1);
    }
}
